package com.example.elm_server_api.service.impl;

import com.example.elm_server_api.domain.ShopInfo;
import com.example.elm_server_api.mapper.ShopInfoMapper;
import com.example.elm_server_api.service.IShopInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service("shopInfoService")
@Transactional
public class ShopInfoServiceImpl implements IShopInfoService {

    @Autowired
    ShopInfoMapper shopInfoMapper;

    @Override
    public List<ShopInfo> selectByName(String name) {
        return this.shopInfoMapper.selectByName(name);
    }
}
